

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=auto>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/img/favicon.png">
  <link rel="icon" href="/img/favicon.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="Primitives, partition and meshing example">
  <meta name="author" content="Veen">
  <meta name="keywords" content="">
  <meta name="description" content="Primitives, partition and meshing example">
<meta property="og:type" content="article">
<meta property="og:title" content="Salome tut 01">
<meta property="og:url" content="https://veenxz.github.io/Salome-tut-01/index.html">
<meta property="og:site_name" content="Veen">
<meta property="og:description" content="Primitives, partition and meshing example">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/screen_1.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen_2.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen3.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen7.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen5.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen9.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen6.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen8.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/copy_of_EDF1_screen9.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/thickness.png/image_preview">
<meta property="og:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen10.png/image_preview">
<meta property="og:image" content="https://veenxz.github.io/img/mesh01.png">
<meta property="article:published_time" content="2021-01-31T16:06:40.000Z">
<meta property="article:modified_time" content="2021-10-14T17:29:25.876Z">
<meta property="article:author" content="Veen">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/screen_1.png/image_preview">
  
  <title>Salome tut 01 - Veen</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/css/bootstrap.min.css" />


  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/github-markdown-css@4/github-markdown.min.css" />
  <link  rel="stylesheet" href="/lib/hint/hint.min.css" />

  
    
    
      
      
        
          
        
        <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1/themes/prism.min.css" />
      
      
        <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1/plugins/line-numbers/prism-line-numbers.min.css" />
      
    
  

  
    <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.css" />
  


<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"veenxz.github.io","root":"/","version":"1.8.12","typing":{"enable":true,"typeSpeed":70,"cursorChar":"_","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null,"path":"window.location.pathname"}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/js/utils.js" ></script>
  <script  src="/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 6.3.0"></head>


<body>
  <header style="height: 55vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/">
      <strong>Veen</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              &nbsp;<i class="iconfont icon-search"></i>&nbsp;
            </a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/img/cinque-terre.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="Salome tut 01">
              
            </span>

            
              <div class="mt-3">
  
  
    <span class="post-meta">
      <i class="iconfont icon-date-fill" aria-hidden="true"></i>
      <time datetime="2021-02-01 00:06" pubdate>
        2021年2月1日 凌晨
      </time>
    </span>
  
</div>

<div class="mt-1">
  
    <span class="post-meta mr-2">
      <i class="iconfont icon-chart"></i>
      4.3k 字
    </span>
  

  
    <span class="post-meta mr-2">
      <i class="iconfont icon-clock-fill"></i>
      
      
      14 分钟
    </span>
  

  
  
</div>

            
          </div>

          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      

<div class="container-fluid nopadding-x">
  <div class="row nomargin-x">
    <div class="d-none d-lg-block col-lg-2"></div>
    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div class="py-5" id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">Salome tut 01</h1>
            
              <p class="note note-info">
                
                  本文最后更新于：2021年10月15日 凌晨
                
              </p>
            
            <div class="markdown-body">
              <h2 id="Primitives-partition-and-meshing-example"><a href="#Primitives-partition-and-meshing-example" class="headerlink" title="Primitives, partition and meshing example"></a>Primitives, partition and meshing example</h2><span id="more"></span>
<p>This sample is known to work on the latest SALOME release.<br>The compatibility with previous versions of SALOME is not guaranteed, though the sample can work on old versions also.</p>
<h3 id="Objective"><a href="#Objective" class="headerlink" title="Objective"></a>Objective</h3><p>Geometric Primitives, tetrahedral and hexahedral 3D meshing, Partitions.</p>
<p><strong>Copyright ©</strong> <strong>EDF R&amp;D 2014.</strong><br>This tutorial is a part of the EDF internal training course; it does not describe a real use case.</p>
<h3 id="Geometry"><a href="#Geometry" class="headerlink" title="Geometry"></a>Geometry</h3><ul>
<li>Launch SALOME.</li>
<li>Create a new study.</li>
<li>Launch GEOMmodule.</li>
</ul>
<h3 id="Modeling-of-2D-object-–-Usage-of-primitives"><a href="#Modeling-of-2D-object-–-Usage-of-primitives" class="headerlink" title="Modeling of 2D object – Usage of primitives"></a>Modeling of 2D object – Usage of primitives</h3><ul>
<li><p>Modification of  preferences: <em>(</em>menu <em>File/Preferences).
</em>Geometry: Origin and base vectors - check <em>Auto create</em>.  Default display mode - <em>Wireframe</em></p>
</li>
<li><p>Creation of Sketch_1 : (menu New Entity/Basic/2D Sketch). </p>
<p>Click Apply after each consecutive line except for the last one:</p>
<p>Arc First Point (Absolute): (150 ; 0) </p>
<p>Arc (Direction; Perpendicular): (50 ; 115)</p>
<p>Arc (Direction; Tangent): (-100 ; 15)</p>
<p>Line Segment (Direction ; Tangent ; Length) : 150</p>
<p>Line Segment (Direction ; VX-VY ; Y) : (0 ; -1 ;0)</p>
<p>Close dialog</p>
</li>
<li><p>Creation of <strong>Mirror_1</strong>: <em>(</em>menu <em>Operations/Transformation/Mirror image)</em><br>(2nd Constructor)</p>
<p><strong>Objects</strong>: Sketch_1</p>
<p><strong>Axis Mirror</strong>: OX</p>
<p>Leave <em>“Create a copy”</em> checked.</p>
</li>
<li><p>Check the wires: (menu Measures/What is)</p>
<p>=&gt; 1 Wire, 4 Edges, 5 vertices.</p>
</li>
<li><p>Explode into basic elements: <em>(</em>menu <em>New Entity/Explode)</em></p>
</li>
<li><p><strong>Explode</strong> Sketch_1 into Edges.</p>
</li>
<li><p><strong>Explode</strong> Mirror_1 into Edges.</p>
<p><img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/screen_1.png/image_preview" srcset="/img/loading.gif" lazyload alt="img">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen_2.png/image_preview" srcset="/img/loading.gif" lazyload alt="img"> </p>
</li>
<li><p>Creation of Wire_1: (menu New Entity/Build/Wire)</p>
<p>Select the group of Edges (previously extracted).</p>
<p><em>Multiple selection is carried out by holding ctrl in the study tree and shift in the viewer.</em></p>
</li>
<li><p>Creation of <strong>Face_1</strong> : <em>(menu New Entity/Build/Face)</em><br>Face with Wire_1.</p>
</li>
<li><p>Display the result in <strong>Shading</strong> (popup menu <em>Display Mode/Shading</em>).</p>
</li>
<li><p>Save the study (menu <em>File/Save</em>)</p>
</li>
</ul>
<h3 id="Usage-of-curves"><a href="#Usage-of-curves" class="headerlink" title="Usage of curves"></a>Usage of curves</h3><p>Explode into sub-elements: <em>(menu New Entity/Explode)</em></p>
<ul>
<li><p>Explode 2 vertices from <strong>Face_1</strong> by selection (<em>Select Sub Shapes</em> Vertex)</p>
<p><em>Selection of a sub-shape is possible only in the OCC Viewer.</em></p>
</li>
<li><p>Rename the 2 vertices in PB and PA.</p>
</li>
</ul>
<p>Creation of Vertices for the curve : ( <em>New Entity/Basic/Point )</em></p>
<ul>
<li><em>Vertex_1 (-150, 0, 0),   Vertex_2 (-140, 20, 0),</em></li>
<li><em>Vertex_3 (-150, 30, 0),  Vertex_4 (-140, 40, 0)</em></li>
<li><em>Vertex_5 (-140, -20, 0), Vertex_6 (-150, -30, 0),</em></li>
<li><em>Vertex_7 (-140, -40, 0)</em></li>
</ul>
<p>Creation of <strong>Curve_1</strong>: <em>(</em>menu <em>New Entity/Basic/Curve)</em></p>
<ul>
<li>Interpolation with the selection of previously created vertexes (3rd Constructor).</li>
<li>Select just created vertexes in the next order: Vertex_4, Vertex_3, Vertex_2, Vertex_1, Vertex_5, Vertex_6, Vertex_7</li>
</ul>
<p>Creation of vectors:<em>(</em>menu <em>New Entity/Basic/Vector)</em></p>
<ul>
<li>Vector by 2 vertices (PA and Vertex_4) and (PB and Vertex_7).</li>
</ul>
<p>Creation of Face_2: (menu New Entity/Build/Face)</p>
<ul>
<li>from Curve_1, Vector_1, Vector_2, Edge_1 and Edge_5.</li>
</ul>
<p>Extrusion: <em>(</em>menu <em>New Entity/Generation/Extrusion)</em></p>
<ul>
<li><p><strong>Extrusion_1</strong> with Face_1 along OZ (Height: 10).</p>
</li>
<li><p><strong>Extrusion _2</strong> with Face_2 along OZ (Height: 10).</p>
</li>
</ul>
<p>Boolean Operation: <em>(</em>menu <em>Operations/Boolean/Fuse)</em></p>
<ul>
<li><strong>Fuse_1</strong> with Extrusion_1 and Extrusion_2.</li>
</ul>
<p>Creation of 3D Fillet on Fuse_1 : <em>(menu Operations/ Fillet 3D)</em></p>
<ul>
<li>(2nd Constructor) (Just two edges)</li>
<li>Fillet by selection of edges.</li>
<li><p>Radius = 25.</p>
<p><img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen3.png/image_preview" srcset="/img/loading.gif" lazyload alt="img">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen7.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_screen6">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen5.png/image_preview" srcset="/img/loading.gif" lazyload alt="img"> </p>
</li>
</ul>
<h3 id="Mesh"><a href="#Mesh" class="headerlink" title="Mesh"></a>Mesh</h3><ul>
<li>Launch module SMESH</li>
</ul>
<h3 id="Creation-of-a-simple-Tetrahedral-mesh"><a href="#Creation-of-a-simple-Tetrahedral-mesh" class="headerlink" title="Creation of a simple Tetrahedral mesh"></a>Creation of a simple Tetrahedral mesh</h3><ul>
<li>Creation of <strong>Mesh_Fillet_1</strong> : <em>(</em>menu <em>Mesh/Create Mesh)</em></li>
<li><p>Geometry: Fillet_1</p>
</li>
<li><p><em>Assign a set of hypotheses</em> -&gt; Automatic Tetrahedralization</p>
</li>
<li><p>Max. Length hypothesis opened, click “Cancel”.</p>
</li>
<li><p>Click 1D Tab, Add “Automatic Length” hypothesis with</p>
</li>
<li><p>Fitness: 0.2</p>
</li>
<li><p>Click OK for validation.</p>
</li>
<li><p>Compute (<em>right-click on</em> Mesh_Fillet_1)</p>
</li>
</ul>
<h3 id="Geometry-Partition"><a href="#Geometry-Partition" class="headerlink" title="Geometry (Partition)"></a><strong>Geometry (Partition)</strong></h3><p>Launch GEOM module</p>
<h3 id="Partition"><a href="#Partition" class="headerlink" title="Partition"></a>Partition</h3><p>Explode <strong>Fillet_1</strong> into reference elements: <em>(</em>menu <em>New Entity/Explode)</em></p>
<ul>
<li>Explode into 5 Vertices by selection.</li>
</ul>
<p>Create 5 <strong>Planes</strong>: <em>(</em>menu <em>New Entity/Basic/Plane)</em> (1st constructor)</p>
<ul>
<li><p>4 planes along vector OX passing through each of 4 first left vertices.</p>
</li>
<li><p>1 plane along vector OY passing through the right vertex.</p>
</li>
</ul>
<p>Creation of the <strong>Partition_1</strong>:<em>(</em>menu <em>Operation/Partition)</em> (1st constructor)</p>
<p>Partition of Fillet_1 (<em>Objects</em>) with 5 Planes (<em>Tool Object</em>).</p>
<p>Visualize the result in <strong>Shading</strong> mode with 40% <strong>transparency</strong> (<em>popup menu</em>).</p>
<h3 id="Meshing-Partition"><a href="#Meshing-Partition" class="headerlink" title="Meshing (Partition)"></a><strong>Meshing (Partition)</strong></h3><p>Launch SMESH module</p>
<h3 id="Creation-of-a-Tetrahedral-mesh-from-a-partition"><a href="#Creation-of-a-Tetrahedral-mesh-from-a-partition" class="headerlink" title="Creation of a Tetrahedral mesh from a partition"></a>Creation of a Tetrahedral mesh from a partition</h3><p>Creation of <strong>Mesh_Partition_Tetra</strong>: <em>(</em>menu <em>Mesh/Create Mesh)</em></p>
<ul>
<li><p>Geometry: Partition_1</p>
</li>
<li><p>Automatic Tetrahedralization (<em>Assign a set of hypotheses</em>)</p>
</li>
<li><p>“Max Length” opened, click Cancel</p>
</li>
<li><p>1D, hypothesis “Automatic Length”, Finesse: 0,2</p>
</li>
<li><p>Compute.</p>
</li>
</ul>
<p><strong>Creation of Hexahedral mesh</strong></p>
<p>Creation of <strong>Mesh_Partition_Hexa</strong>: <em>(</em>menu <em>Mesh/Create Mesh)</em></p>
<ul>
<li><p>Automatic Hexadralization (Assign a set of hypotheses)</p>
</li>
<li><p>Geometry: Partition_1</p>
</li>
<li><p>Number of Segments: 10, Type: Equidistant distribution.</p>
</li>
<li><p>Apply &amp; Close.</p>
</li>
</ul>
<p><strong>Exploding the Edge of Thickness</strong></p>
<p>Activate Geom Module.</p>
<p>Explode one Edge of Thickness</p>
<p>New Entity -&gt; Explode -&gt; Main Object : Partition_1 -&gt; Shape Type : Edge</p>
<p>Activate “Select Subshape” check box and select sub-shape from the viewer.</p>
<p>return to the Mesh Module.</p>
<p><strong>Creation of</strong> <strong>SubMesh</strong>: <em>(</em>menu <em>Mesh/Create Sub-Mesh)</em></p>
<ul>
<li><p>Mesh: Mesh_Partion_Hexa</p>
</li>
<li><p>Geometry : The edge of thickness.</p>
</li>
<li><p>Algo: Wire Discretisation</p>
</li>
<li><p>Hypothesis: Nb Segment (1, Equidistant distribution)</p>
</li>
<li><p>Add Hyp.: Propagation of 1D Hyp. on opposite edges</p>
</li>
<li><p>Compute.</p>
<p><img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen9.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_screen8">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen6.png/image_preview" srcset="/img/loading.gif" lazyload alt="img">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen8.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_screen7">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/copy_of_EDF1_screen9.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_screen9">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/thickness.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_thickness">  <img src="https://www.salome-platform.org/user-section/salome-tutorials/edf-exercise-1/EDF1_screen10.png/image_preview" srcset="/img/loading.gif" lazyload alt="EDF1_screen9"> </p>
</li>
</ul>
<p>​                                                                                                                            </p>
<p>My final mesh</p>
<p><img src="..\img\mesh01.png" srcset="/img/loading.gif" lazyload alt="mesh01"></p>

            </div>
            <hr>
            <div>
              <div class="post-metas mb-3">
                
                
              </div>
              
                <p class="note note-warning">
                  
                    本博客所有文章除特别声明外，均采用 <a target="_blank" href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener noopener">CC BY-SA 4.0 协议</a> ，转载请注明出处！
                  
                </p>
              
              
                <div class="post-prevnext">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/Slurm-note/">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">Slurm_note</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/ffmpeg_denoise/">
                        <span class="hidden-mobile">ffmpeg Denoise</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            
              <!-- Comments -->
              <article class="comments" id="comments" lazyload>
                
                  
                
                
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/npm/valine@1/dist/Valine.min.js', function() {
        var options = Object.assign(
          {"appId":"w8VaEP3iTgYj1EnQ7TsHSp6k-gzGzoHsz","appKey":"bB6pIAfcqCjPz7ujeqh5nVut","path":"window.location.pathname","placeholder":"说点什么","avatar":"retro","meta":["nick","mail","link"],"requiredFields":[],"pageSize":10,"lang":"zh-CN","highlight":false,"recordIP":false,"serverURLs":"","emojiCDN":null,"emojiMaps":null,"enableQQ":false},
          {
            el: "#valine",
            path: window.location.pathname
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          Fluid.plugins.initFancyBox('#valine .vcontent img:not(.vemoji)');
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


              </article>
            
          </article>
        </div>
      </div>
    </div>
    
      <div class="d-none d-lg-block col-lg-2 toc-container" id="toc-ctn">
        <div id="toc">
  <p class="toc-header"><i class="iconfont icon-list"></i>&nbsp;目录</p>
  <div class="toc-body" id="toc-body"></div>
</div>

      </div>
    
  </div>
</div>

<!-- Custom -->


    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> <font size="3" face="" color="#2f4154"> <p class="copyright text-muted"> Copyright © Veen 2021 <br> Find me on <a href="https://github.com/Veenxz" target="_blank">GitHub</a> | <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" target="_blank"> <img src="https://d33wubrfki0l68.cloudfront.net/3031be41e8753c70508aa88e84ed8f4f653f157e/d2d9a/images/cc-by-nc-sa.svg" srcset="/img/loading.gif" lazyload alt="Creative Commons"> </a> </p> </font> <div> <span id="timeDate">载入天数...</span> <span id="times">载入时分秒...</span> <script src="/js/duration.js"></script> </div> 
  </div>
  
  <div class="statistics">
    
    

    
      
        <!-- 不蒜子统计PV -->
        <span id="busuanzi_container_site_pv" style="display: none">
            总访问量 
            <span id="busuanzi_value_site_pv"></span>
             次
          </span>
      
      
        <!-- 不蒜子统计UV -->
        <span id="busuanzi_container_site_uv" style="display: none">
            总访客数 
            <span id="busuanzi_value_site_uv"></span>
             人
          </span>
      
    
  </div>


  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4/dist/js/bootstrap.min.js" ></script>
<script  src="/js/events.js" ></script>
<script  src="/js/plugins.js" ></script>

<!-- Plugins -->


  <script  src="/js/local-search.js" ></script>



  
    <script  src="/js/img-lazyload.js" ></script>
  



  
    
  



  
    <script  src="https://cdn.jsdelivr.net/npm/tocbot@4/dist/tocbot.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/@fancyapps/fancybox@3/dist/jquery.fancybox.min.js" ></script>
  
  
    <script  src="https://cdn.jsdelivr.net/npm/anchor-js@4/anchor.min.js" ></script>
  
  
    <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js" ></script>
  



  <script defer src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" ></script>




  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>





  

  
    <!-- MathJax -->
    <script>
      MathJax = {
        tex: {
          inlineMath: [['$', '$'], ['\\(', '\\)']]
        },
        loader: {
          load: ['ui/lazy']
        },
        options: {
          renderActions: {
            findScript: [10, doc => {
              document.querySelectorAll('script[type^="math/tex"]').forEach(node => {
                const display = !!node.type.match(/; *mode=display/);
                const math = new doc.options.MathItem(node.textContent, doc.inputJax[0], display);
                const text = document.createTextNode('');
                node.parentNode.replaceChild(text, node);
                math.start = { node: text, delim: '', n: 0 };
                math.end = { node: text, delim: '', n: 0 };
                doc.math.push(math);
              });
            }, '', false],
            insertedScript: [200, () => {
              document.querySelectorAll('mjx-container').forEach(node => {
                let target = node.parentNode;
                if (target.nodeName.toLowerCase() === 'li') {
                  target.parentNode.classList.add('has-jax');
                }
              });
            }, '', false]
          }
        }
      };
    </script>

    <script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-svg.js" ></script>

  











<!-- 主题的启动项 保持在最底部 -->
<script  src="/js/boot.js" ></script>


</body>
</html>
